$(document).ready(function() {

	$('#go').click(login);

});

function login() {
	var email = $('#email').val();
	var password = $('#password').val();
	var url = 'http://t.qiyi.com/api/sso/login.php';

	postData = {
		'email' : email,
		'pwd' : password,
		'remusrname' : 1
	};

	$.post(url, postData, loginCallback, 'json');
}

function loginCallback(data) {
	if (data.code == 'A00000') {
		$('#loginStatus').text('成功啦！ :) ').fadeIn();
	} else {
		$('#loginStatus').text('再来，再来').fadeIn();
	}

}




